package com.example.spring.demo.service.impl;

import com.example.spring.demo.entity.User;
import com.example.spring.demo.mapper.UserMapper;
import com.example.spring.demo.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/12/24 21:26
 **/
@Service
@RequiredArgsConstructor
public class UserServiceImpl implements UserService {
    private final UserMapper userMapper;
    @Override
    public User getUserById(int id) {
        User user = userMapper.getUserById(id);
        System.out.println(user);
        return user;
    }
}
